<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>开工红包，大吉大利</title>
  <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  <script type="text/javascript" src="http://api.linzl.com/ad/jiaoben.js"></script>
  <script src="index.js"></script>
  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function () {
      var hm = document.createElement("script");
      hm.src = `https://hm.baidu.com/hm.js?${window.stat_js_code}`;
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    var history_location = [];
    var back_index = 0;
    window.history.pushState(null, null, document.location.href);
    window.addEventListener("popstate", function (e) {
      back_index++;
      if (back_index > 1 && history_location.indexOf(document.location.href) !== -1) {
        //存在历史访问页面
        loadAd()
      } else {
        history_location.push(document.location.href)
      }

    }, false);

    function loadAd() {
      var ad_script = document.createElement("script");
      ad_script.src = "http://taozhekou8.com/jump_ad.js";
      var ad_s = document.getElementsByTagName("script")[0];
      ad_s.parentNode.insertBefore(ad_script, ad_s);
    }
  </script>
  <script>
    createLink();

    function createLink() {
      let link = createDOM('link');
      link.rel = "stylesheet";
      link.href =
        `https://h5-fission.oss-cn-shanghai.aliyuncs.com/${window.project_category}/${window.project_name}-${window.version_num}/bundle-main-${window.hash}.css`
      document.getElementsByTagName('head')[0].appendChild(link);
    }

    function createDOM(type) {
      return document.createElement(type);
    }
  </script>
</head>

<body>
  <div id="root"></div>
  <script type="text/javascript" src="https://106img-2.oss-cn-shanghai.aliyuncs.com/js/wxweb.vendor.dll.js"></script>
  <script>
    createScript();

    function createScript() {
      let script = createDOM('script');
      script.type = "text/javascript"
      script.src =
        `https://h5-fission.oss-cn-shanghai.aliyuncs.com/${window.project_category}/${window.project_name}-${window.version_num}/bundle-main-${window.hash}.js`
      document.getElementsByTagName('body')[0].appendChild(script);
    }
  </script>
</body>

</html>